#ifndef __EEPROM_CFG_H
#define __EEPROM_CFG_H


/* Includes ------------------------------------------------------------------*/
#include "mf_config.h"
#include "fm33lg0xx_fl.h"


#define VIN_BYTE0_EE_FLASH_RAM_ADDRESS  0u
#define VIN_BYTE1_EE_FLASH_RAM_ADDRESS  1u
#define VIN_BYTE2_EE_FLASH_RAM_ADDRESS  2u
#define VIN_BYTE3_EE_FLASH_RAM_ADDRESS  3u
#define VIN_BYTE4_EE_FLASH_RAM_ADDRESS  4u
#define VIN_BYTE5_EE_FLASH_RAM_ADDRESS  5u
#define VIN_BYTE6_EE_FLASH_RAM_ADDRESS  6u
#define VIN_BYTE7_EE_FLASH_RAM_ADDRESS  7u
#define VIN_BYTE8_EE_FLASH_RAM_ADDRESS  8u
#define VIN_BYTE9_EE_FLASH_RAM_ADDRESS  9u
#define VIN_BYTE10_EE_FLASH_RAM_ADDRESS 10u
#define VIN_BYTE11_EE_FLASH_RAM_ADDRESS 11u
#define VIN_BYTE12_EE_FLASH_RAM_ADDRESS 12u
#define VIN_BYTE13_EE_FLASH_RAM_ADDRESS 13u
#define VIN_BYTE14_EE_FLASH_RAM_ADDRESS 14u
#define VIN_BYTE15_EE_FLASH_RAM_ADDRESS 15u
#define VIN_BYTE16_EE_FLASH_RAM_ADDRESS 16u
#define VIN_RESERVED1_EE_FLASH_RAM_ADDRESS 17u
#define VIN_RESERVED2_EE_FLASH_RAM_ADDRESS 18u
#define VIN_RESERVED3_EE_FLASH_RAM_ADDRESS 19u


#define APPLICATION_SOFTWARE_FINGERPRINT_BYTE0_EE_FLASH_RAM_ADDRESS  20u
#define APPLICATION_SOFTWARE_FINGERPRINT_BYTE1_EE_FLASH_RAM_ADDRESS  21u
#define APPLICATION_SOFTWARE_FINGERPRINT_BYTE2_EE_FLASH_RAM_ADDRESS  22u
#define APPLICATION_SOFTWARE_FINGERPRINT_BYTE3_EE_FLASH_RAM_ADDRESS  23u
#define APPLICATION_SOFTWARE_FINGERPRINT_BYTE4_EE_FLASH_RAM_ADDRESS  24u
#define APPLICATION_SOFTWARE_FINGERPRINT_BYTE5_EE_FLASH_RAM_ADDRESS  25u
#define APPLICATION_SOFTWARE_FINGERPRINT_BYTE6_EE_FLASH_RAM_ADDRESS  26u
#define APPLICATION_SOFTWARE_FINGERPRINT_BYTE7_EE_FLASH_RAM_ADDRESS  27u
#define APPLICATION_SOFTWARE_FINGERPRINT_BYTE8_EE_FLASH_RAM_ADDRESS  28u
#define APPLICATION_SOFTWARE_FINGERPRINT_RESERVED1_EE_FLASH_RAM_ADDRESS  29u
#define APPLICATION_SOFTWARE_FINGERPRINT_RESERVED2_EE_FLASH_RAM_ADDRESS  30u
#define APPLICATION_SOFTWARE_FINGERPRINT_RESERVED3_EE_FLASH_RAM_ADDRESS  31u



#define VIN_BYTE0_3_EE_FLASH_ADDRESS   0u
#define VIN_BYTE4_7_EE_FLASH_ADDRESS   1u
#define VIN_BYTE8_11_EE_FLASH_ADDRESS  2u
#define VIN_BYTE12_15_EE_FLASH_ADDRESS 3u
#define VIN_BYTE16_19_EE_FLASH_ADDRESS 4u



#define APPLICATION_SOFTWARE_FINGERPRINT_BYTE0_3_EE_FLASH_ADDRESS  5u
#define APPLICATION_SOFTWARE_FINGERPRINT_BYTE4_7_EE_FLASH_ADDRESS  6u
#define APPLICATION_SOFTWARE_FINGERPRINT_BYTE7_11_EE_FLASH_ADDRESS 7u

#define APPLICATION_SOFTWARE_FINGERPRINT_EE_FLASH_SIZE  3

void EE_Flash_Task(void);
void EE_Flash_Init(void);
uint8_t EE_FlashRamRead(uint16_t index);
#endif